using Lzfy_Refund_Service.Models;

namespace Lzfy_Refund_Service.Repositories
{
    public interface IRefundDictRepository
    {
        Task<RefundDict?> GetByIdAsync(int id);
        Task<IEnumerable<RefundDict>> GetAllAsync();
        Task<IEnumerable<RefundDict>> GetByDictIdAsync(int dictId);
        Task<RefundDict?> GetByDictIdAndItemValueAsync(int dictId, string itemValue);
        Task<int> CreateAsync(RefundDict refundDict);
        Task<bool> UpdateAsync(RefundDict refundDict);
        Task<bool> DeleteAsync(int id);
        Task<IEnumerable<DictCategory>> GetDictCategoriesAsync();
    }
}